<?php
/*
# ------------------------------------------------------------------------
# JD Base Theme
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
if (!($mobile = T3Util::getDevice())) return; 
$T3Params =& T3Params::getInstance();
$handheld_view = $T3Params->get('ui');
$switch_to = $handheld_view=='desktop'?'default':'desktop';
$text = $handheld_view=='desktop'?'Mobile Version':'Desktop Version';
?>

<a class="ja-tool-switchlayout" href="?ui=<?php echo $switch_to?>" title="<?php echo t($text)?>"><span><?php echo t($text)?></span></a>